package com.czy.designPatterns.监听者模式.java;

import lombok.Data;

import java.util.EventObject;

/**
 * 事件对象
 * @Author: czy
 * @Date: 2019/6/6 9:40
 */
@Data
public class WashingHandsEvent extends EventObject {
    private String eventName;
    /**
     * Constructs a prototypical Event.
     *
     * @param source The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    public WashingHandsEvent(Object source,String eventName) {
        super(source);
        this.eventName = eventName;
    }
}
